package com.tql.kingdee.service;

import com.ruoyi.common.datasource.annotation.Master;
import com.tql.kingdee.mapper.KingdeeMaterialTransUnitMapper;
import com.tql.kingdee.mapper.MaterialMapper;
import com.tql.kingdee.response.MaterialResponse;
import com.tql.kingdee.response.MaterialTransUnitResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class KingdeeMaterialTransUnitService {
    @Autowired
    private KingdeeMaterialTransUnitMapper kingdeeMaterialTransUnitMapper;
    @Autowired
    private MaterialMapper materialMapper;

    @Master
    public void batchAdd(List<MaterialTransUnitResponse> list) {

        kingdeeMaterialTransUnitMapper.batchAdd(list);
    }

    public void saveMaterial(List<MaterialResponse> list) {
        materialMapper.batchAdd(list);
    }
}
